package pers.csw.lookBook.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import pers.csw.lookBook.entity.Content;

/**
 * @author csw
 */
@Mapper
public interface ContentMapper extends BaseMapper<Content> {
    /**
     * 通过章节id获取该章节的内容
     * @param chapterId 章节id
     * @return 返回该章节的数据
     */
    @Select("select * from lb_book_content where chapter_id = #{chapterId}")
    Content getContent(Integer chapterId);
}
